package mx.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import mx.entity.Ticket;

/**
 * 票service
 * 
 * @author root
 *
 */
@Service("ticketService")
public interface TicketService {

	/**
	 * 按条件查询所有票
	 * 
	 * @return
	 */
	public List<Ticket> list(Map<String, Object> map);

	/**
	 * 查询总记录数
	 * 
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String, Object> map);

	/**
	 * 更新票信息
	 * 
	 * @param employee
	 * @return
	 */
	public Integer update(Ticket ticket);
	/**
	 * 添加员工信息
	 * 
	 * @param employee
	 * @return
	 */
	public Integer add(Ticket ticket);

}
